import axios from "axios"
export let getlist = ()=>{
    return (dispatch)=>{
        axios.get("/list").then(res=>{
                dispatch({
                    type:"getlist",
                    payload:res.data
                })
        })
    }
}
export let searchfn = (value)=>{
        return {
            type:"searchfn",
            payload:value
        }
}